package com.demo.inner;

import me.chanjar.weixin.cp.api.WxCpMediaService;

import java.io.File;

/**
 * created by lanxinghua@2dfire.com on 2020/2/13
 * 企业内部开发：素材管理
 * https://work.weixin.qq.com/api/doc/90000/90135/91054
 */
public class InnerMediaDemo extends InnerBaseService{
    static WxCpMediaService mediaService = wxCpService.getMediaService();

    public static void main(String[] args) throws Exception{
        mediaService.download("media_id");
        mediaService.upload("type", new File("path"));
        mediaService.uploadImg(new File("path"));
    }
}
